//
//  CopyiPhoneFadeView.h
//  渐变的文字
//
//  Created by 周少文 on 15/10/27.
//  Copyright © 2015年 ZheJiangWangHang. All rights reserved.
//

/**
 
 文字颜色渐变
 
 CopyiPhoneFadeView *iphoneFade = [[CopyiPhoneFadeView alloc] initWithFrame:CGRectMake(0, 0, 300, 40)];
 iphoneFade.text = @"浙江万航运动世界";
 iphoneFade.foreColor = [UIColor whiteColor];
 iphoneFade.backColor = [UIColor redColor];
 iphoneFade.font = [UIFont systemFontOfSize:30];
 iphoneFade.alignment = NSTextAlignmentCenter;
 iphoneFade.center = CGPointMake(self.view.bounds.size.width/2.0, self.view.bounds.size.height/2.0+50);
 [self.view addSubview:iphoneFade];
 
 [iphoneFade iPhoneFadeWithDuration:2];
 
 */

#import <UIKit/UIKit.h>

@interface CopyiPhoneFadeView : UIView

@property (nonatomic,strong) NSString *text;
@property (nonatomic,assign) NSTextAlignment alignment;
@property (nonatomic,strong) UIColor *backColor;
@property (nonatomic,strong) UIColor *foreColor;
@property (nonatomic,strong) UIFont *font;

- (void)iPhoneFadeWithDuration:(NSTimeInterval)duration;

@end
